#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void fun(char str1[], char str2[]);

int main()
{
	char arr1[100] =  "This Is a c Program" ;
	char arr2[100] = {0};
	int i;
	
	fun(arr1, arr2);

	for (i = 0; arr2[i] != '\0'; i++)
		printf("%c", arr2[i]);
	return 0;
}

void fun(char str1[], char str2[])
{
	int i, j;
	j = 0;
	for (i = 0; str1[i] != '\0';)
	{
		str2[j] = str1[i];
		i += 2;
		j++;
	}
	str2[j] = '\0';
}